/*
 * @Author: your name
 * @Date: 2021-01-11 20:02:50
 * @LastEditTime: 2021-01-14 23:43:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \heima-mobileCP\src\api\channel.js
 */

import request from '@/utils/request'
/**
 * @description: 获取频道列表
 * @param {*} 无
 * @return {Promise}
 */
export const getChannels = () => {
  return request({
    method: 'GET',
    url: '/v1_0/user/channels'
  })
}

/**
 * @description: 获取所有频道列表
 * @param {*}
 * @return {*}
 */

export const getAllChannels = () => {
  return request({
    method: 'GET',
    url: '/v1_0/channels'
  })
}
/**
 * @description: 更新频道列表
 * @param {*} data
 * @return {*}
 */
export const updateChannelList = (data) => {
  return request({
    method: 'PUT',
    url: '/v1_0/user/channels',
    data
  })
}
